package com.fastloan.mgt.customer.model;

import com.fastloan.mgt.customer.anno.EnumObj;
import com.fastloan.mgt.customer.anno.TagAnno;
import com.fastloan.mgt.customer.enums.CustomerEnums;
import com.kawins.base.baseabs.BaseModel;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * @author gelon createTime 2017/11/06 客户与我行往来
 */
@javax.persistence.Table(name = "ZY_CUSTOMER_MY_BANK")
public class ZyCustomerMyBank extends BaseModel<String> {


    /**
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TagAnno(name = "")
    private String id;
    /**
     *
     */
    @TagAnno(name = "")
    private String customerId;
    /**
     * 是否已经是我行客户
     */
    @TagAnno(name = "是否已经是我行客户")
    private Integer ownerCustomer;


    @Transient
    @EnumObj(mapping = "ownerCustomer")
    private CustomerEnums.CommonYN[] ownerCustomerEnums = CustomerEnums.CommonYN.values();

    /**
     * 办理过的业务
     */
    @TagAnno(name = "办理过的业务")
    private String handledBusiness;
    /**
     * 办理过贷款 1是 0 否
     */
    @TagAnno(name = "办理过贷款 1是 0 否")
    private Integer handledLoan;

    @Transient
    @EnumObj(mapping = "handledLoan")
    private CustomerEnums.CommonYN[] commonYNEnums = CustomerEnums.CommonYN.values();

    /**
     * 贷款产品
     */
    @TagAnno(name = "贷款产品")
    private String loanProject;
    /**
     * 当前贷款状态
     */
    @TagAnno(name = "当前贷款状态")
    private String loanStatus;
    /**
     * 备注
     */
    @TagAnno(name = "备注")
    private String other;


    public String getId() {
        return id;
    }

    public ZyCustomerMyBank setId(String id) {
        this.id = id;
        return this;
    }

    public String getCustomerId() {
        return customerId;
    }

    public ZyCustomerMyBank setCustomerId(String customerId) {
        this.customerId = customerId;
        return this;
    }

    public Integer getOwnerCustomer() {
        return this.ownerCustomer;
    }

    public ZyCustomerMyBank setOwnerCustomer(Integer ownerCustomer) {
        this.ownerCustomer = ownerCustomer;
        return this;
    }

    public CustomerEnums.CommonYN[] getOwnerCustomerEnums() {
        return ownerCustomerEnums;
    }

    public CustomerEnums.CommonYN[] getCommonYNEnums() {
        return commonYNEnums;
    }


    public String getHandledBusiness() {
        return this.handledBusiness;
    }

    public ZyCustomerMyBank setHandledBusiness(String handledBusiness) {
        this.handledBusiness = handledBusiness;
        return this;
    }

    public Integer getHandledLoan() {
        return this.handledLoan;
    }

    public ZyCustomerMyBank setHandledLoan(Integer handledLoan) {
        this.handledLoan = handledLoan;
        return this;
    }

    public String getLoanProject() {
        return this.loanProject;
    }

    public ZyCustomerMyBank setLoanProject(String loanProject) {
        this.loanProject = loanProject;
        return this;
    }

    public String getLoanStatus() {
        return this.loanStatus;
    }

    public ZyCustomerMyBank setLoanStatus(String loanStatus) {
        this.loanStatus = loanStatus;
        return this;
    }

    public String getOther() {
        return this.other;
    }

    public ZyCustomerMyBank setOther(String other) {
        this.other = other;
        return this;
    }
}
